home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
FLEX-TC_
/
MACUTILS.C
< prev
next >
Wrap
Text File
|
1990-01-03
|
421b
|
26 lines
#ifdef THINK_C
#include <MemoryMgr.h>
#include <ResourceMgr.h>
#include <stdio.h>
#include <stdlib.h>
/**
** Load a static table from the current resource file
**/
short int *load_table (int id)
{
Handle h;
if ((h = GetResource ('YYst', id)) == NULL) {
fputs ("error loading static table resource", stderr);
putc ('\n', stderr);
exit (1);
}
MoveHHi (h);
HLock (h);
return (short int *) *h;
}
#endif